package com.envmonitor.domain.repository;

import com.envmonitor.domain.model.Device;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface DeviceRepository extends JpaRepository<Device, Long> {
    List<Device> findByType(Device.DeviceType type);
    List<Device> findByActiveTrue();
    List<Device> findByLocation(String location);
}